package com.free.system.domain;

import com.free.common.annotation.Excel;
import com.free.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 票券定时触发对象 free_ticket_click_task
 *
 * @author Sophia
 * @date 2025-02-27
 */
public class FreeTicketClickTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 会员id
     */
    @Excel(name = "会员id")
    private Long memberId;

    /**
     * 会员电话
     */
    @Excel(name = "会员电话")
    private String memberPhone;

    /**
     * 票券id
     */
    @Excel(name = "票券id")
    private Long ticketId;

    /**
     * 票券名称
     */
    @Excel(name = "票券名称")
    private String ticketName;

    /**
     * 任务id
     */
    @Excel(name = "任务id")
    private Long jobId;

    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    private String jobName;

    /**
     * 任务状态（0正常 1暂停）
     */
    @Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
    private String jobStatus;

    /**
     * 任务明细
     */
    @Excel(name = "任务明细")
    private String jobDetail;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setTicketId(Long ticketId) {
        this.ticketId = ticketId;
    }

    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public Long getJobId() {
        return jobId;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobDetail(String jobDetail) {
        this.jobDetail = jobDetail;
    }

    public String getJobDetail() {
        return jobDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("memberId", getMemberId())
                .append("memberPhone", getMemberPhone())
                .append("ticketId", getTicketId())
                .append("ticketName", getTicketName())
                .append("jobId", getJobId())
                .append("jobName", getJobName())
                .append("jobStatus", getJobStatus())
                .append("jobDetail", getJobDetail())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
